package com.lanou.service.impl;

import com.lanou.bean.Area;
import com.lanou.mapper.AreaMapper;
import com.lanou.service.AreaService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class AreaServiceImpl implements AreaService{

    @Autowired
    private AreaMapper areaMapper;

    @Override
    public List<Area> selectAllParent(String code) {
        return areaMapper.selectAllParent(code);
    }
}
